import request from '@/utils/request'

export const ArrangeSectionSeatApi = {
  /**
     *  座位列表
     * @returns
     */
  getList: (arrangeSectionCode) => {
    return request({
      url: '/manage/intercity/arrangeSectionSeat/getList',
      params:{ arrangeSectionCode },
      method: 'get'
    })
  },
  /**
     *  座位列表
     * @returns
     */
  getListByArrangeCode: (arrangeCode) => {
    return request({
      url: '/manage/intercity/arrangeSectionSeat/getListByArrangeCode',
      params:{ arrangeCode },
      method: 'get'
    })
  },
  /**
     *  锁定座位
     * @returns
     */
  lockSeat: (data) => {
    return request({
      url: '/manage/intercity/arrange/lockSeat',
      data,
      method: 'post'
    })
  },

  /**
     *  解锁座位
     * @returns
     */
  unLockSeat: (data) => {
    return request({
      url: '/manage/intercity/arrange/unLockSeat',
      data,
      method: 'post'
    })
  }
}
